package com.mr.security.web.webapp.rbac.controller;

import com.mr.security.web.webapp.rbac.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * Class: UserController
 * User (作者):MRui
 * TODO (描述)：userController
 * Date 2019-01-14 23:55
 */
@RestController
public class UserController {

    @GetMapping("/user")
    public List<User> find(@RequestParam(name = "id",required = false,defaultValue = "1") Integer id){
        List<User> users = new ArrayList<>();
        users.add(new User());
        users.add(new User());
        users.add(new User());
        return users;
    }
}
